﻿@model ZhongheCms.Models.GswTblBusInfo
@{
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string retUrl = "";
    if (ViewContext.HttpContext.Request.UrlReferrer != null)
    {
        retUrl =
          ViewContext.HttpContext.Request.UrlReferrer.PathAndQuery;
    }
    retUrl = "/SunJob/BusDesc/" + Model.Id;
    int rFlag = 0;
    if (Model.ReserveNum > Model.Seats)
    {
        rFlag = 1;
    }
    
}
@section head
{
    <link href="/assets/sunjob/css/jobdesctable.css" rel="stylesheet" />
}
<div class="fix gWrapper">
    <div class="breakcrumb">
        <a href="/">首页</a>&nbsp;&gt;&nbsp;
            <a href="/SunJob/CharteredBus">包车预订</a>
    </div>

    <div class="insidePage_main fl gBor mb15">
      
     
        <table style="border: 0px solid; margin-top: 10px">
            <tbody>
                <tr>
                    <td class="p">报名截止：</td>
                    <td>@Model.EndDate.ToShortDateString()</td>
                    <td class="p">发车日期</td>
                    <td>@Model.StartDate.ToShortDateString() <span>@Model.StartTime</span>
                    </td>
                </tr>
                <tr>
                    <td class="p">发车地点：</td>
                    <td colspan="3">@Model.OriginPlace
                    </td>
                    
                </tr>
                <tr>
                    <td class="p">途经</td>
                    <td colspan="3">@Model.RouteLine</td>
                    
                </tr>
                <tr>
                    <td class="p">终点站：</td>
                    <td colspan="3">@Model.EndPlace</td>


                </tr>
                <tr>
                    <td class="p" >座位数：</td>
                    <td >@Model.Seats</td>
                    <td class="p" >票价：</td>
                    <td >@Model.Price</td>
                </tr>
                 <tr>
                        <td class="p">线路说明：</td>
                        <td colspan="3">@Html.Raw(Model.Remark)</td>
                    </tr>
               
               
                


            

            </tbody>
        </table>
        

         <div class="arctile-moreLink fix ">
                <p class="prev p10">
                    @if (!string.IsNullOrEmpty(ViewBag.msg) && ViewBag.msg == "no")
                    {
                         <span style="color: red">报名失败,请稍后再试</span>
                    }
                </p>
             <p class="next p10">
                 @if (rFlag == 0)
                 {
                       if (!string.IsNullOrEmpty(ViewBag.msg) && (ViewBag.msg == "ok" || ViewBag.msg == "ex"))
                 {
                     if (ViewBag.msg == "ok")
                     {
                         <span style="color: red">报名成功,请等待审核通过</span>    
                     }
                     if (ViewBag.msg == "ex")
                     {
                         <span style="color: red">您已经报过名了</span>    
                     }
                 }
                 else
                 {
                     if (Session["loginstate"] != null && Session["loginstate"].ToString() == "ok")
                     {
                         <a   href="/SunJob/BusRegister/@Model.Id">
                             <img src="/assets/sunjob/img/login_btn_2.gif" /></a>
                     }
                     else
                     {
                         <a   href="/SunJob/SignIn/0?returnUrl=@retUrl">
                             <img src="/assets/sunjob/img/login_btn_2.gif" /></a>
                     }
                 }
                 }
                 else
                 {
                      <span style="color: red">对不起,名额已满</span>   
                 }



             </p>

            </div>




        <div class="fix arctileDeatils mb15">
            <h3 class="gH3">温馨提示</h3>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">1、阳光职场只提供信息发布平台，包车之可能存在的风险请提前明确悉知</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">2、上车前最好早到10-15分钟，提前准备好自己的登车携带物品</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">3、乘客不得携带交管部门禁止携带的危险品上车，不然，后果自负</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">4、上车后请及时向客车管理员交纳相关乘车费用，保持客车清洁卫生，不随意损害公共物品</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">4、请自觉遵守客车有关规定，遇到问题及时联系驾驶员或客车管理员</span></p>


        </div>
    </div>
    <div class="insidePage_sidebar fr ">
        <div class="gBor mb15 bff  hot">
            <h3 class="gH3">最新职位</h3>
            <div>
                <ul class="m15 insidePage-sideBar-list gList">
                    @foreach (var item in Model.JobInfos)
                    {
                        <li><a href="/SunJob/JobDesc/@item.Id" >@item.JobTitle <span style="color: red">@item.Salary</span></a></li>
                    }



                </ul>
            </div>


        </div>
        <div class="gBor mb15 bff">
            <h3 class="gH3">公告通知</h3>
            <ul class="m15 insidePage-sideBar-list gList">
                @foreach (var item in Model.Notices)
                {
                    <li><a href="/Home/ContentShow/@item.Id" target="_blank">@item.ContentTitle</a></li>
                }


            </ul>
        </div>
        <div class="gBor mb15 bff">
            <h3 class="gH3">主题活动</h3>
            <ul class="m15 insidePage-sideBar-list gList">

                @foreach (var item in Model.PartNews)
                {
                    <li><a href="/Home/ContentShow/@item.Id" target="_blank">@item.ContentTitle</a></li>
                }
            </ul>
        </div>






    </div>




</div>
